home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / lib / gprim / mesh / meshsphere.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-16  |  347 b   |  16 lines

  1. #include "geom.h"
  2. #include "create.h"
  3. #include "meshP.h"
  4.  
  5. Geom *MeshBoundSphere(mesh, T, space) 
  6.      Mesh *mesh;
  7.      Transform T;
  8.      int space;
  9. {
  10.   Geom *sphere;
  11.   sphere = GeomCreate("sphere", CR_ENCOMPASS_POINTS, mesh->p, 
  12.               CR_NENCOMPASS_POINTS, (mesh->nu * mesh->nv),
  13.               CR_AXIS, T, CR_SPACE, space, CR_END);
  14.   return sphere;
  15. }
  16.